module.exports = {
    entry: __dirname + '/src/App.js', // 入口文件路径
    output: {
        path: __dirname + '/lib',
        filename: 'bundle.js'
    },
    target: "electron-renderer",
    module: {
        loaders: [{
            test: /\.js$/, // babel 转换为兼容性的 js
            exclude: /node_modules/,
            loader: 'babel-loader',
            query: {
                presets: ['latest']
            }
        }, { test: /\.css$/, loader: 'style-loader!css-loader' }]
    }
}